{
    "name": "<%=  data.dirName %>",
    "id": <%=  Math.floor(Math.random() * (9000000)) + 1000000; %>,
    "auth": {},
    "parentId": <%=  data.parentId %>,
    "serverId": "",
    "description": "",
    "identityPattern": {
        "httpApi": {
            "type": "inherit",
            "bodyType": "",
            "fields": []
        }
    },
    "preProcessors": [
        {
            "id": "inheritProcessors",
            "type": "inheritProcessors",
            "data": {}
        }
    ],
    "postProcessors": [
        {
            "id": "inheritProcessors",
            "type": "inheritProcessors",
            "data": {}
        }
    ],
    "inheritPostProcessors": {},
    "inheritPreProcessors": {},
    "items": [
    <%for(var i = 0; i < data.serviceDefList.length; i++){%>
        {
            
            "name": "<%= data.serviceDefList[i].serviceName %>",
            "api": {
                "id": "<%=  Math.floor(Math.random() * (900000000)) + 100000000; %>",
                "method": "post",
                "path": "/api/<%= data.serviceDefList[i].serviceCode %>",
                "parameters": {
                    "header": [
                        {
                            "required": false,
                            "description": "",
                            "type": "string",
                            "id": "<%= [...Array(10).keys()].map(x => x + 1).map(item=>'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.charAt(Math.floor(Math.random()*62))).join("") %>",
                            "example": "<%= data.token %>",
                            "enable": true,
                            "name": "Authorization"
                        }
                    ]
                },
                "auth": {},
                "commonParameters": {
                    "query": [],
                    "body": [],
                    "cookie": [],
                    "header": []
                },
                "responses": [
                    {
                        "id": "<%=  Math.floor(Math.random() * (900000000)) + 100000000; %>",
                        "name": "成功",
                        "code": 200,
                        "contentType": "json",
                        "jsonSchema": {
                            "type": "object",
                            "properties": {}
                        }
                    }
                ],
                "responseExamples": [],
                "requestBody": {
                    "type": "application/json",
                    "parameters": [],
                    "jsonSchema": {
                        "type": "object",
                        "properties": {}
                    },
                    "example": "<%- data.serviceDefList[i].requestBody %>"
                },
                "description": "",
                "tags": [],
                "status": "developing",
                "serverId": "",
                "operationId": "",
                "sourceUrl": "",
                "ordering": <%=  (i+1)*10 %>,
                "cases": [],
                "mocks": [],
                "customApiFields": "{}",
                "advancedSettings": {
                    "disabledSystemHeaders": {}
                },
                "mockScript": {},
                "codeSamples": [],
                "commonResponseStatus": {},
                "responseChildren": [],
                "preProcessors": [],
                "postProcessors": [],
                "inheritPostProcessors": {},
                "inheritPreProcessors": {}
            }
        }<%= i<(data.serviceDefList.length-1)?",":"" %>
    <%}%>
    ]
}